#ifndef GRAPHICITEMSETTINGDIALOG_H
#define GRAPHICITEMSETTINGDIALOG_H

#include <QtGui/QDialog>
#include <QtGui/QTableView>
#include <QtGui/QHeaderView>
#include <QtGui/QPushButton>

#include <QtSql/QSqlTableModel>

#include "addgrabtndialog.h"

class GraphicItemSettingDialog : public QDialog
{
    Q_OBJECT
public:
    explicit GraphicItemSettingDialog(const QString &tableName, QWidget *parent = 0);

signals:
    void add_btn();

public slots:
    void submit_all();
    void revert();
    void on_delete_pushbutton_clicked();
    void add_item_btn_clicked();

private:
    QTableView *item_view;
    QPushButton *submit_btn;    //提交更改
    QPushButton *revert_btn;    //撤销更改
    QPushButton *back_btn;   //返回

    QPushButton *add_item_btn;
    QPushButton *delete_item_btn;
    QPushButton *set_device_logo;

    AddGraBtnDialog *add_grabtn_dlg;	//添加手控点对话框

    QSqlTableModel *model;
};

#endif // GRAPHICITEMSETTINGDIALOG_H
